package com.atguigu.common.exception;

/**
 * @ClassName BizCodeEnum
 * @Description
 * @Author LiQianJin~
 * @Date 2023/6/13 14:01
 * @Version 1.0
 */
public enum BizCodeEnum {

    UNKNOWN_EXCEPTION(10000, "系统未知异常"),

    PRODUCT_UP_EXCEPTION(11000,"商品上架失败"),
    VALIDATION_EXCEPTION(10001, "参数格式校验失败");

    BizCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;


    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
